import request from '@/utils/request.js'

// 注册接口
export function userRegisterService(registerData: any) {
    // 借助于UrlSearchParams完成传递
    const params = new URLSearchParams()
    for (let key in registerData) {
        params.append(key, registerData[key])
    }
    return request.post('/user/register', registerData)
}